3.7.44 \(\int (-3+3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m \, dx\) [644]

Optimal. Leaf size=45 \[ \frac {\cos (e+f x) (-3+3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m}{f (1+2 m)} \]

[Out]

cos(f*x+e)*(-3+3*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m/f/(1+2*m)

________________________________________________________________________________________

Rubi [A]
time = 0.04, antiderivative size = 45, normalized size of antiderivative = 1.00, number of steps used = 1, number of rules used = 1, integrand size = 29, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.034, Rules used = {2821} \begin {gather*} \frac {\cos (e+f x) (3 \sin (e+f x)-3)^{-m-1} (a \sin (e+f x)+a)^m}{f (2 m+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(-3 + 3*Sin[e + f*x])^(-1 - m)*(a + a*Sin[e + f*x])^m,x]

[Out]

(Cos[e + f*x]*(-3 + 3*Sin[e + f*x])^(-1 - m)*(a + a*Sin[e + f*x])^m)/(f*(1 + 2*m))

Rule 2821

Int[((a_) + (b_.)*sin[(e_.) + (f_.)*(x_)])^(m_)*((c_) + (d_.)*sin[(e_.) + (f_.)*(x_)])^(n_), x_Symbol] :> Simp
[b*Cos[e + f*x]*(a + b*Sin[e + f*x])^m*((c + d*Sin[e + f*x])^n/(a*f*(2*m + 1))), x] /; FreeQ[{a, b, c, d, e, f
, m, n}, x] && EqQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && EqQ[m + n + 1, 0] && NeQ[m, -2^(-1)]

Rubi steps

\begin {align*} \int (-3+3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m \, dx &=\frac {\cos (e+f x) (-3+3 \sin (e+f x))^{-1-m} (a+a \sin (e+f x))^m}{f (1+2 m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [B] Leaf count is larger than twice the leaf count of optimal. \(110\) vs. \(2(45)=90\).
time = 0.60, size = 110, normalized size = 2.44 \begin {gather*} \frac {2^{-m} 3^{-1-m} \cos ^{-1-2 m}\left (\frac {1}{4} (2 e+\pi +2 f x)\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^{2 (1+m)} (-1+\sin (e+f x))^{-1-m} (a (1+\sin (e+f x)))^m \sin \left (\frac {1}{4} (2 e+\pi +2 f x)\right )}{f+2 f m} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(-3 + 3*Sin[e + f*x])^(-1 - m)*(a + a*Sin[e + f*x])^m,x]

[Out]

(3^(-1 - m)*Cos[(2*e + Pi + 2*f*x)/4]^(-1 - 2*m)*(Cos[(e + f*x)/2] - Sin[(e + f*x)/2])^(2*(1 + m))*(-1 + Sin[e
 + f*x])^(-1 - m)*(a*(1 + Sin[e + f*x]))^m*Sin[(2*e + Pi + 2*f*x)/4])/(2^m*(f + 2*f*m))

________________________________________________________________________________________

Maple [F]
time = 0.16, size = 0, normalized size = 0.00 \[\int \left (-3+3 \sin \left (f x +e \right )\right )^{-1-m} \left (a +a \sin \left (f x +e \right )\right )^{m}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((-3+3*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x)

[Out]

int((-3+3*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-3+3*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x, algorithm="maxima")

[Out]

integrate((a*sin(f*x + e) + a)^m*(3*sin(f*x + e) - 3)^(-m - 1), x)

________________________________________________________________________________________

Fricas [A]
time = 0.35, size = 46, normalized size = 1.02 \begin {gather*} \frac {{\left (a \sin \left (f x + e\right ) + a\right )}^{m} {\left (3 \, \sin \left (f x + e\right ) - 3\right )}^{-m - 1} \cos \left (f x + e\right )}{2 \, f m + f} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-3+3*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x, algorithm="fricas")

[Out]

(a*sin(f*x + e) + a)^m*(3*sin(f*x + e) - 3)^(-m - 1)*cos(f*x + e)/(2*f*m + f)

________________________________________________________________________________________

Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-3+3*sin(f*x+e))**(-1-m)*(a+a*sin(f*x+e))**m,x)

[Out]

Timed out

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((-3+3*sin(f*x+e))^(-1-m)*(a+a*sin(f*x+e))^m,x, algorithm="giac")

[Out]

integrate((a*sin(f*x + e) + a)^m*(3*sin(f*x + e) - 3)^(-m - 1), x)

________________________________________________________________________________________

Mupad [B]
time = 7.83, size = 45, normalized size = 1.00 \begin {gather*} \frac {\cos \left (e+f\,x\right )\,{\left (\frac {a\,\left (\sin \left (e+f\,x\right )+1\right )}{3}\right )}^m}{3\,f\,\left (2\,m+1\right )\,{\left (\sin \left (e+f\,x\right )-1\right )}^{m+1}} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a + a*sin(e + f*x))^m/(3*sin(e + f*x) - 3)^(m + 1),x)

[Out]

(cos(e + f*x)*((a*(sin(e + f*x) + 1))/3)^m)/(3*f*(2*m + 1)*(sin(e + f*x) - 1)^(m + 1))

________________________________________________________________________________________